package com.arvin.faceDetect

import android.app.Application
import com.arvin.faceDetect.utils.LogUtils

class FaceDetectApp : Application() {

    companion object {
        lateinit var instance: FaceDetectApp
            private set
    }

    override fun onCreate() {
        super.onCreate()
        instance = this

        // 初始化日志工具
        LogUtils.init(this)
    }

    override fun onTerminate() {
        super.onTerminate()
        // 关闭日志写入器
        LogUtils.closeLogWriters()
    }
} 